package cn.rkylin.oms.base.refundReasonType.vo;

import cn.rkylin.oms.base.refundReasonType.domain.RdfundReasonType;

/**
 * 对应退款原因类型页面
 * 
 * @author qitao
 * @version 1.0
 * @created 17-7月-2017
 */
public class RdfundReasonTypeVO extends RdfundReasonType {

    private static final String OPERATION_BTN_SELECT = "<button onclick=\"operationSelect(this)\" refundReasonId=\"%s\" type=\"button\" class=\"btn btn-info btn-xs\"><i class=\"fa fa-edit\"></i>&nbsp;平台退款原因</button>";
    private static final String OPERATION_BTN_EDIT = "<button onclick=\"operationEdit(this)\" refundReasonId=\"%s\" type=\"button\" class=\"btn btn-info btn-xs\"><i class=\"fa fa-edit\"></i>&nbsp;修改</button>";
    private static final String OPERATION_BTN_DELETE = "<button onclick=\"operationDelete(this)\" refundReasonId=\"%s\" type=\"button\" class=\"btn btn-danger btn-xs\"><i class=\"fa fa-trash-o\"></i>&nbsp;删除</button>";

    // 画面按钮
    private String operation;

    // 排序
    private String orderBy;

    public String getOperation() {
        StringBuffer opButton = new StringBuffer();

        opButton.append(String.format(OPERATION_BTN_SELECT, getRefundReasonId()));
        opButton.append("&nbsp;");
        opButton.append(String.format(OPERATION_BTN_EDIT, getRefundReasonId()));
        opButton.append("&nbsp;");
        opButton.append(String.format(OPERATION_BTN_DELETE, getRefundReasonId()));

        return opButton.toString();
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

}
